package com.youpai.platform.order.service.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @time: 2022/8/4 8:04 下午
 * @author: welles
 * @description: 订单PO
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_order")
public class OrderPO {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 老板uid
     */
    private Long bossUid;

    /**
     * 大神uid
     */
    private Long bigGodUid;

    /**
     * 技能id
     */
    private Long skillId;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 单价
     */
    private Double price;

    /**
     * 订单总额
     */
    private Double sumPrice;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 创建时间
     */
    private Timestamp createTime;

    /**
     * 更新时间
     */
    private Timestamp updateTime;

    /**
     * 删除标记
     */
    private Integer deleteFlag;
    public OrderPO(){}

    public OrderPO(Long orderId, Long bossUid,Long bigGodUid, Long skillId,
                   Integer count, Double price, Double sumPrice, Integer orderStatus) {
        setOrderId(orderId);
        setBossUid(bossUid);
        setBigGodUid(bigGodUid);
        setSkillId(skillId);
        setCount(count);
        setPrice(price);
        setSumPrice(sumPrice);
        setOrderStatus(orderStatus);
    }
}